﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SaleDiscount.Portal.Default" %>

<%@ Register TagPrefix="vs" Namespace="NetDon.WebControls" Assembly="NetDon.WebControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Sale Discount Tool</title>
    <script src="./Javascripts/jquery.js" type="text/javascript"></script>
    <style type="text/css">
        html, body
        {
            background-color: White;
            text-align: center;
            margin: 0 auto;
            padding: 0;
            font-size: 9pt;
            height: 100%;
            width: 100%;
            overflow: hidden;
            font-family: Arial, Helvetica, sans-serif;
        }
    </style>
    <script type="text/javascript">

        function pageLoad() {
            if (window.top.location != window.location) {
                window.top.location = window.location;
                return;
            }
            layout();
            $(window).resize(layout);
        }

        function layout() {
            var bounds = $common.getClientBounds();
            $('.fullWidth').width(bounds.width);
            var node = $get('fullHeight');
            var height = bounds.height;
            Array.forEach($array(node.parentNode.childNodes), function (item) {
                if (item.nodeType == Page.NodeType.element && item != node) {
                    height -= $common.getSize(item).height;
                }
            });
            $(node).height(height);
            Array.forEach($array(node.childNodes), function (item) {
                $(item).height(height);
            });
            $('#frameWorkSpace').width($('#fullHeight').width() - $('.menu').width());
            $('.menu').height($('#fullHeight').height());
        }
        $(document).ready(
	function () {

	    $("#liToogleDisplay").hover(function () {
	        $(".left_nav").toggle();
	        layout();

	    });
	});        

 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <CompositeScript>
            <Scripts>
                <asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="AjaxControlToolkit.Compat.Timer.Timer.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="NetDon.WebControls.Page.js" Assembly="NetDon.WebControls" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>
    <%if (false)
      { %>
    <script type="text/javascript" src="Javascripts/jquery-1.3.2-vsdoc2.js"></script>
    <%} %>
    <div class="bodyMain">
        <div class="Banner fullWidth">
            <div class="BannerContainerText">
                <div class="BannerText">
                    &nbsp;
                </div>
                <div class="BannerSystemText" style="font-size: 18px">
                    Sale Discount Tool
                </div>
            </div>
            <div class="Logo">
              
            </div>
        </div>
        <div class="TopMenu fullWidth">
            <div class="Left">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <ul>
                          
                        </ul>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="Right">
            <ul>
                  
                    <span>Welcome,<%=EbayUserName %></span>
                <asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>.&nbsp;&nbsp;Today
                is
                <%= DateTime.Today.ToString("MM/dd/yyyy")%>
                <asp:LinkButton ID="btnLogout" runat="server" OnClick="btnLogout_Click">Logout</asp:LinkButton>  
            </ul>
                  
              
            </div>
        </div>
        <div class="blank13">
        </div>
        <div class="fullWidth fullHeight" id="fullHeight">
            <table cellspacing="0" cellpadding="0" border="0" class="left_nav" style="float: left;
                height: 299px;">
                <tbody>
                    <tr>
                        <td valign="top">
                            <div class="menu" id="panelMenu" style="height: 299px; visibility: visible; overflow: hidden;">
                                <div class="ScrollContainer">
                                    <div class="ScrollContainer" style="width: 195px; height: 299px;">
                                        <div class="menu" id="" style="visibility: visible;">
                                            <div class="menuContainer">
                                                <div class="menuModule" id="rptMenu_ctl00_panelModule">
                                                    <div class="menuModuleTitle" id="rptMenu_ctl00_panelModuleTitle">
                                                        <div>
                                                            Sale Discount Tool
                                                        </div>
                                                    </div>
                                                    <input type="hidden" id="rptMenu_ctl00_cpeMenuItem_ClientState" name="rptMenu$ctl00$cpeMenuItem_ClientState"
                                                        value="false">
                                                    <div class="" id="" style="border: 0px none; margin: 0px; padding: 0px; overflow-y: hidden;
                                                        visibility: visible; height: auto;">
                                                        <div class="menuModuleChildren" id="rptMenu_ctl00_panelMenuItems" style="visibility: visible;
                                                            height: auto;">
                                                            <div class="menuItem">
                                                                <div>
                                                                    <a target="WorkSpace" href="SaleDiscountManagement.aspx?Type=0" id="A1">Sale management</a>
                                                                </div>
                                                            </div>
                                                            <div class="menuItem">
                                                                <div>
                                                                    <a target="WorkSpace" href="TokenManagement.aspx" id="A11">Token Management</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="ScrollBar" style="height: 299px; position: absolute; left: 182px; top: 0px;
                                    display: none; visibility: hidden;">
                                    <div class="ScrollBar" style="position: relative; width: 13px; height: 299px;">
                                        <div class="Top">
                                        </div>
                                        <div class="Bottom" style="position: absolute; left: 0px; top: 276px;">
                                        </div>
                                        <div class="HandlerContainer" style="top: 20px; height: 259px;">
                                            <div class="HandlerContainer" style="position: relative; width: 13px; height: 259px;">
                                                <div class="Handler" style="height: 131px; top: 0px;">
                                                    <div class="Handler" style="position: relative; height: 131px;">
                                                        <div class="HandlerTop">
                                                        </div>
                                                        <div class="HandlerMiddleContainer" style="height: 123px;">
                                                            <div class="HandlerMiddle">
                                                            </div>
                                                        </div>
                                                        <div class="HandlerBottom">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <iframe id="frameWorkSpace" name="WorkSpace" frameborder="0" marginheight="0" marginwidth="0"
                scrolling="no" runat="server" src="SaleDiscountManagement.aspx"></iframe>
        </div>
        <div class="fullWidth PageFooter">
            <span class="footleft"></span><span>Copyright &copy 2003 -
                <%# Server.HtmlEncode(Convert.ToString(Eval("Name")))%>By Peter Wang</span>
        </div>
    </div>
    </form>
</body>
</html>
